<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1" import="com.sakila.dao.FilmDAO"
	import="java.util.List" import="com.sakila.dbo.FilmDBO"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>

	<%
		List<FilmDBO> list = new FilmDAO().findAll();
	%>


	<table border="1">
		<tr bgcolor="yellow">
			<th>Film ID</th>
			<th>Title</th>
			<th>Release Year</th>
			<th>Rating</th>
			<th>Rental Rate</th>
			<th>Special Features</th>
		</tr>
		<%
			for (FilmDBO aco : list) {
		%>
		<tr bgcolor="lightblue">
			<td><%=aco.getFilm_id()%></td>
			<td><%=aco.getTitle()%></td>
			<td><%=aco.getRelease_year()%></td>
			<td><%=aco.getRating()%></td>
			<td><%=aco.getRental_rate()%></td>
			<td><%=aco.getSpecial_features()%></td>
		</tr>
		<%
			}
		%>
	</table>
</body>
</html>